//
//  GQHRoutesView.h
//  Xanthium
//
//  Created by GuanQinghao on 08/03/2018.
//  Copyright © 2018 GuanQinghao. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "GQHRouteModel.h"


@protocol GQHRoutesViewDelegate <NSObject>

@required
/// 默认必须实现

@optional
/// 可选实现
/// 点击列表项
- (void)qh_selectedRowWithTableView:(UITableView *)tableView atIndexPath:(NSIndexPath *)indexPath;

/// 移除Cell
- (void)qh_removeRowWithTableView:(UITableView *)tableView atIndexPath:(NSIndexPath *)indexPath;

@end


@interface GQHRoutesView : UIView

/// 代理
@property (nonatomic, weak) id<GQHRoutesViewDelegate> qh_delegate;

/// 路线列表
@property (nonatomic, strong) UITableView *qh_tableView;

/// 路线
@property (nonatomic, strong) NSMutableArray<GQHRouteModel *> *qh_routeModelArray;

@end
